
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>1.5.帐户设置界面 – 更新密码 · api 文档</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-plus/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchors/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" >
            
                <span>
            
                    
                    1.Use
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="1.1.html">
            
                <a href="1.1.html">
            
                    
                    1.1 登入界面
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1.1" data-path="1.1.html">
            
                <a href="1.1.html">
            
                    
                    1.1.1. 登入
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="1.2.html">
            
                <a href="1.2.html">
            
                    
                    1.2.注册界面
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.2.1" data-path="1.2.html">
            
                <a href="1.2.html">
            
                    
                    1.2.1.查询用户名重复
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2.2" >
            
                <span>
            
                    
                    1.2.2. 请求短信认证码
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2.3" >
            
                <span>
            
                    
                    1.2.3. 用户注册
            
                </span>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="1.3.html">
            
                <a href="1.3.html">
            
                    
                    1.3. 帐户设置界面 – 基本资料
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.3.1" >
            
                <span>
            
                    
                    1.3.1. 更新基本资料
            
                </span>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="1.4.html">
            
                <a href="1.4.html">
            
                    
                    1.4. 帐户设置界面 – 手机号码
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.4.1" >
            
                <span>
            
                    
                    1.4.1. 更新手机
            
                </span>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter active" data-level="1.2.5" data-path="1.5.html">
            
                <a href="1.5.html">
            
                    
                    1.5.帐户设置界面 – 更新密码
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.5.1" >
            
                <span>
            
                    
                    1.5.1.更新密码
            
                </span>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    2. Shop
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../2/2.1.html">
            
                <a href="../2/2.1.html">
            
                    
                    2.1. Add Shop UI
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1.1" >
            
                <span>
            
                    
                    2.1.1. 查询店户名重复
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.2" >
            
                <span>
            
                    
                    2.1.2. 查询店URL重复
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.3" >
            
                <span>
            
                    
                    2.1.3. 开店
            
                </span>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../2/2.2.html">
            
                <a href="../2/2.2.html">
            
                    
                    2.2. 更新店面界面
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.2.1" >
            
                <span>
            
                    
                    2.2.1. 更新店面设定
            
                </span>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../2/2.3.html">
            
                <a href="../2/2.3.html">
            
                    
                    2.3. Shop Listing UI
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.3.1" >
            
                <span>
            
                    
                    2.3.1. 帐户店面列表
            
                </span>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    3. Design
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../3/3.1.html">
            
                <a href="../3/3.1.html">
            
                    
                    3.1. Design Product List
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1.1" >
            
                <span>
            
                    
                    3.1.1. 设计版面产品列表
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.2" >
            
                <span>
            
                    
                    3.1.2.原产品类别选项列表
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.3" >
            
                <span>
            
                    
                    3.1.3.上传设计图
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.4" >
            
                <span>
            
                    
                    3.1.4.提交到下一步
            
                </span>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../3/3.2.html">
            
                <a href="../3/3.2.html">
            
                    
                    3.2.设计产品界面
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.2.1" >
            
                <span>
            
                    
                    3.2.1.设计产品选项列表
            
                </span>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >1.5.帐户设置界面 – 更新密码</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div class="search-plus" id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <html><head></head><body><h1 id="15&#x5E10;&#x6237;&#x8BBE;&#x7F6E;&#x754C;&#x9762;-&#x2013;-&#x66F4;&#x65B0;&#x5BC6;&#x7801;"><a name="15&#x5E10;&#x6237;&#x8BBE;&#x7F6E;&#x754C;&#x9762;-&#x2013;-&#x66F4;&#x65B0;&#x5BC6;&#x7801;" class="plugin-anchor" href="#15&#x5E10;&#x6237;&#x8BBE;&#x7F6E;&#x754C;&#x9762;-&#x2013;-&#x66F4;&#x65B0;&#x5BC6;&#x7801;"><i class="fa fa-link" aria-hidden="true"></i></a>1.5.&#x5E10;&#x6237;&#x8BBE;&#x7F6E;&#x754C;&#x9762; &#x2013; &#x66F4;&#x65B0;&#x5BC6;&#x7801;</h1>
<p><img src="2018-04-20-11-59-18.png" alt=""></p>
<h2 id="151&#x66F4;&#x65B0;&#x5BC6;&#x7801;"><a name="151&#x66F4;&#x65B0;&#x5BC6;&#x7801;" class="plugin-anchor" href="#151&#x66F4;&#x65B0;&#x5BC6;&#x7801;"><i class="fa fa-link" aria-hidden="true"></i></a>1.5.1.&#x66F4;&#x65B0;&#x5BC6;&#x7801;</h2>
<pre><code>
Request: PUT /users/password
{
    &#x201C;oldPassword&#x201D;: &#x201C;123456&#x201D;,
    &#x201C;newPassword&#x201D;: &#x201C;654321&#x201D;
}

Response:
{
    &#x201C;result&#x201D;:&#x201D;ok&#x201D;
}

ParameterException(&#x201C;Incorrect existing password.&#x201D;)  - 400, &#x73B0;&#x6709;&#x5BC6;&#x7801;&#x9519;&#x8BEF;
ParameterException(&#x201C;Password must be at least 6 character long and contains both letter and number.&#x201D;)  - 400, &#x5BC6;&#x7801;&#x957F;&#x5EA6;&#x5FC5;&#x987B;&#x4E3A;6&#x4F4D;&#x4EE5;&#x4E0A;&#x53CA;&#x540C;&#x65F6;&#x5305;&#x542B;&#x6570;&#x5B57;&#x548C;&#x975E;&#x6570;&#x5B57;&#x5B57;&#x7B26;
</code></pre></body></html>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"1.5.帐户设置界面 – 更新密码","level":"1.2.5","depth":2,"next":{"title":"1.5.1.更新密码","level":"1.2.5.1","depth":3,"ref":"","articles":[]},"previous":{"title":"1.4.1. 更新手机","level":"1.2.4.1","depth":3,"ref":"","articles":[]},"dir":"ltr"},"config":{"plugins":["-lunr","-search","search-plus","-toggle-chapters","simple-page-toc","anchors","-expandable-chapters-small","-theme-api","livereload"],"root":".","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"search-plus":{},"simple-page-toc":{},"anchors":{},"livereload":{},"highlight":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"api 文档","gitbook":"*"},"file":{"path":"1/1.5.md","mtime":"2018-04-20T04:00:55.882Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-04-20T06:44:40.675Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-plus/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

